#include <d3dx9.h>
#include <d3d9.h>

class CMesh
{
private:
	DWORD					m_nNumMtrl;

	LPD3DXMESH				m_pMesh;
	D3DMATERIAL9			*m_pMeshMaterial;
	LPDIRECT3DTEXTURE9		*m_pMeshTexture;

public:
			 CMesh();
	virtual ~CMesh();

	bool					LoadMeshFromFile(LPCSTR pathfile, LPDIRECT3DDEVICE9 d3ddv);
	void					DrawMesh(LPDIRECT3DDEVICE9 d3ddv);
	void					Release();
};